NAME		=	WakeOnWan

SRCS		=	src/main.cpp \
			src/WakeOnWan.cpp \
			src/utils/NetUtils.cpp \
			src/utils/Socket.cpp

OBJS		=	$(SRCS:.cpp=.o)

CXX		=	g++ -O3

CFLAGS		+=	-W -Wall -Werror -Weffc++ -ansi

LDFLAGS		+=       

RM		=	rm -f

$(NAME):	$(OBJS)
		$(CXX) $(OBJS) -o $(NAME) $(LDFLAGS)

all:		$(NAME) 

clean:
		$(RM) $(OBJS)
		$(RM) *~
		$(RM) \#*\#

fclean:		clean
		$(RM) $(NAME)

re:		fclean all

.PHONY:		all clean fclean re

.SUFFIXES:	.cpp .o

.cpp.o:
		$(CXX) $(CFLAGS) -c $< -o $(<:.cpp=.o)
